home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10446 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  769 b 

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: lightir@aol.com (Lightir)
  3. Newsgroups: comp.lang.c++
  4. Subject: help!
  5. Date: 6 Mar 1996 23:19:23 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4hlo4b$r9v@newsbf02.news.aol.com>
  9. Reply-To: lightir@aol.com (Lightir)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. Im new to C++. How would I write this use only the standard libraries (if
  13. possible), and what headers do I need:
  14.  
  15. Make New Window;
  16. paste picture in window;
  17. enum boolean(FALSE, TRUE);
  18. boolean next_click;
  19.  
  20. main()
  21. label b;
  22. if mouse click {
  23. get mouse coordinates;
  24. paste icon at mouse coordinates;
  25. next_click = TRUE;
  26. }
  27.  
  28. if next_click = TRUE {
  29. move icon from old coordinates to new coordinates;
  30. }
  31. else {
  32. goto b;
  33. }
  34.